package com.bjsxt.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @author:liao
 * @Description:TODO 封装页面需要的返回数据 tableData
 * @date:2021/1/12
 */
@ApiModel(value="com-bjsxt-dto-SchedulingDto")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SchedulingDto implements Serializable {
    private Long userId; // 医生id
    private Long deptId; // 科室id
    private String subsectionType; //排班时间段  上午1 下午2 晚上3
    private Collection<String> schedulingType; // 周一到周日的排班类型 门诊1 急诊2

    // 存放周一到周日的值班记录 key为周一到周日的日期  value有值班的话就存 1 门诊 2急诊 没有值班的话就存""
    @JsonIgnore
    private Map<String,String> record;


    public SchedulingDto(Long userId, Long deptId, String subsectionType, Map<String, String> record) {
        this.userId = userId;
        this.deptId = deptId;
        this.subsectionType = subsectionType;
        this.record = record;
    }
}
